/*
 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
 */

#ifndef ERASECONFIGSETTING_H
#define ERASECONFIGSETTING_H

#include <QWidget>
#include <QCheckBox>
#include <QList>
#include "BurnToolCommon/Global.h"
#include "ui_EraseConfigSetting.h"

namespace BurnDlg {

class EraseConfigSetting : public QWidget {
    Q_OBJECT
public:
    explicit EraseConfigSetting(QWidget *parent = nullptr);
    ~EraseConfigSetting() override;
public slots:
    void SlotBnClickedOK(bool checked = false);
signals:
    void SignalSetEraseConfig(unsigned int cbEraseConfig, const QVector<EraseConfig> &vecEraseConfig);

protected:
    void ReadMultipleXML();
    void InitUi();
private:
    Ui::EarseConfigSetting *ui;
    QVector<EraseConfig> vecEraseConfig;
    QMap<unsigned int, QCheckBox *> listCB;
    unsigned int cbEraseConfig;
};

}
#endif // ERASECONFIGSETTING_H
